package com.example.demo_mvvm.repository;

import com.example.demo_mvvm.entity.BaseResponse;
import com.example.demo_mvvm.entity.VideoEntity;
import com.example.demo_mvvm.http.ApiService;
import com.example.demo_mvvm.http.RetrofitManager;

import java.util.List;

import retrofit2.http.Query;

/**
 * @author yaotianxue
 * @description 仓库层
 * @date 2025/1/9
 */
public class VideoRepository {
    public BaseResponse<List<VideoEntity>> video(int currentPage){
       return RetrofitManager.getInstance().getRetrofit().create(ApiService.class).video(currentPage);
    }
}
